<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/head.jsp"%>

<div class="content">
	<div class="container-fluid">
		<nav class="pull-left">
			<strong>你现在所在的位置是:</strong>&nbsp;&nbsp;&nbsp; <span>供应商管理页面 >> 供应商修改页面</span><br> <br>
		</nav>
	</div>
	<div class="container-fluid">
		<div class="row">
			<div>
				<div class="card">
					<div class="header">
						<h4 class="title">
							修改供应商信息 <small> Edit Supplier Information</small>
						</h4>
					</div>
					<div class="content">
						<form id="providerForm" name="providerForm" method="post"
							  action="${pageContext.request.contextPath}/sys/provider/modifysave.html">
							<input type="hidden" name="id" value="${provider.id}"/>

							<div class="row">
								<div class="col-md-4">
									<div class="form-group">
										<label for="proName">供应商名称 <small> Supplier Name</small> </label>
										<input type="text" class="form-control border-input" name="proName"
											   id="proName" value="${provider.proName}">
										<font color="red"></font>
									</div>
								</div>
								<div class="col-md-5">
									<div class="form-group">
										<label for="proCode">供应商编码 <small> Supplier Code</small> </label>
										<input type="text" class="form-control border-input"
											   id="proCode" value="${provider.proCode}" readonly="readonly">
									</div>
								</div>
								<div class="col-md-3">
									<div class="form-group">
										<label for="proContact">联系人 <small> Contact</small> </label>
										<input type="text" class="form-control border-input" name="proContact"
											   id="proContact" value="${provider.proContact}">
										<font color="red"></font>
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-6">
									<div class="form-group">
										<label for="proPhone">联系电话 <small> Phone Number</small> </label>
										<input type="text" class="form-control border-input" name="proPhone"
											   id="proPhone" value="${provider.proPhone}">
										<font color="red"></font>
									</div>
								</div>
								<div class="col-md-6">
									<div class="form-group">
										<label for="proAddress">地址 <small> Address</small> </label>
										<input type="text" class="form-control border-input" name="proAddress"
											   id="proAddress" value="${provider.proAddress}">
										<font color="red"></font>
									</div>
								</div>
							</div>

							<div class="row">
								<div class="col-md-12">
									<div class="form-group">
										<label for="proDesc">供应商描述 <small> Description</small> </label>
										<textarea rows="5" class="form-control border-input" name="proDesc"
												  id="proDesc">${provider.proDesc}</textarea>
										<font color="red"></font>
									</div>
								</div>
							</div>

							<!-- 暂不处理文件上传
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="companyLicPic">营业执照图片 <small> License Picture</small> </label>
                                        <input type="file" class="form-control border-input" name="companyLicPic"
                                            id="companyLicPic">
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="orgCodePic">组织机构代码证图片 <small> Organization Code Picture</small> </label>
                                        <input type="file" class="form-control border-input" name="orgCodePic"
                                            id="orgCodePic">
                                    </div>
                                </div>
                            </div>
                            -->

							<div class="text-center">
								<input type="button" name="save" id="save" value="修改供应商"
									   class="btn btn-info btn-fill btn-wd" />
								<input type="button" id="back" name="back" value="返回"
									   class="btn btn-success btn-fill btn-wd" onclick="window.history.back();" />
							</div>
							<div class="clearfix"></div>
						</form>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>

<%@ include file="/WEB-INF/jsp/common/foot.jsp"%>
<script type="text/javascript">
	$(".sidebar-wrapper .nav li:eq(5)").addClass("active");
</script>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/js/providermodify.js"></script>
